package server;

/**
 * An enumerator for the rules direction in the system (incoming or outgoing).
 */
public enum RulesTableType {
	IN, OUT;

	public String toString() {
		switch (this) {
		case IN:
			return "Input";
		case OUT:
			return "Output";
		}
		return null;
	}

	public int toInt() {
		switch (this) {
		case IN:
			return 0;
		case OUT:
			return 1;
		}
		return -1;
	}

	public static int size() {
		return 2;
	}
}